package com.kun.leave.mapper;

import com.kun.leave.model.Role;
import com.kun.leave.model.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author fangkun
 * @create 2023-05-26-10:57
 */
@Mapper
public interface UserMapper {

    User loadUserByUsername(@Param("username") String username);

    List<Role> getUserRolesByUserId(@Param("id") Integer id);

    List<User> getAllUsersExcludeCurrent(@Param("name") String name);
}
